package com.fuhe.chen.vendingmachine.dto;

import lombok.Data;

/**
 * 视图层对象:机器中的商品
 */
@Data
public class ItemInMachine {
    /**
     * 主键
     */
    private Integer id;

    /**
     * 商品主键
     */
    private Integer itemId;


    /**
     * 商品名称
     */
    private String item_name;

    /**
     * 价格
     */
    private Float price;

    /**
     * 商品分类
     */
    private String categoryName;

    /**
     * 商品状态
     */
    private Integer item_status;

    /**
     * 图片
     */
    private String picture_url;

    /**
     * 数量
     */
    private String specifications;

    /**
     * 机器主键
     */
    private Integer machineId;

    /**
     * 货柜id
     */
    private String containerId;

    public ItemInMachine(Integer id, Integer itemId, String item_name, Float price, String categoryName, Integer item_status, String picture_url, String specifications, Integer machineId, String containerId) {
        this.id = id;
        this.itemId = itemId;
        this.item_name = item_name;
        this.price = price;
        this.categoryName = categoryName;
        this.item_status = item_status;
        this.picture_url = picture_url;
        this.specifications = specifications;
        this.machineId = machineId;
        this.containerId = containerId;
    }
}
